<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Login</title>
</head>
<script type="text/javascript">
function login(){
  if(document.appForm.user_name.value == ''){
		window.alert('Please fill in your username');
  	return false;
  }
  if(document.appForm.password.value == ''){
		window.alert('Please fill in your password');
	  return false;
  }
  document.appForm.submit();
  return true;
}
</script>
<body>
<?php
$errors = null;
if (count($this->messageError) > 0) {
  $errors = $this->formErrors($this->messageError, array('id' => 'errors'));
}
?>
<form name="appForm" method="post" action=""
		enctype="multipart/form-data">

		<div class="clr"></div>
<?php echo $errors?>

 <!-- BEGIN: CONTENT -->
		<div id="element-box">

			<div class="m">
				<!-- BEGIN: ELEMENT BOX -->
				
				Username : <?php  echo $this->formText('user_name','');?>
	      <br></br>
				Password : <?php echo $this->formPassword('password','');?>
				<br></br>
				<?php // echo $this->formSubmit('submit','Login');?>
				<input type="button" value="Login" onclick="login();" />

				<!-- END: ELEMENT BOX -->
				<div class="clr"></div>
			</div>

			<div class="b">
				<div class="b">
					<div class="b"></div>
				</div>
			</div>
		</div>
		<!-- END: 	CONTENT -->
	</form>
</body>
</html>